package com.maimao.mg.repository;

import com.maimao.model.goods.Comment;
import com.maimao.model.info.MgCoupon;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2021/1/28 11:09 上午
 */
public interface CommentRepository extends MongoRepository<Comment, Long> {

    List<Comment> findCommentsByTopId(Long topId);

    Comment findCommentByIdAndPid(Long id, Long pid);
}
